package com.bee.beemanage.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bee.beemanage.api.entity.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bee.beemanage.system.common.utils.result.Result;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 权限表 服务类
 * </p>
 *
 * @author 陈国松
 * @since 2022-10-09
 */
public interface SysPermissionService extends IService<SysPermission> {

    List<SysPermission> selectListByUserId(String userId);

    Page<SysPermission> recycleSearch(Page<SysPermission> page, SysPermission sysPermission, LocalDateTime startTime, LocalDateTime endTime);

    boolean recover(List<String> idsList);

    Result clear();
}
